package com.boot2.core.utils;

import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;

/**
 * @author zhangweilin
 * @Description: xxxxx
 * @date 2020/8/4
 */
public class ScriptEngineUtil {

    private static final ScriptEngineManager scriptEngineManager = new ScriptEngineManager();
    /**
     *
     * @return
     */
    public static ScriptEngine getScriptEngine() {
        return scriptEngineManager.getEngineByName("JavaScript");
    }
}
